import React from 'react';
import { Router, Route, Switch } from 'dva/router';
// import IndexPage from './routes/IndexPage';
import BasicLayout from './layouts/BasicLayout'
// import PageOne from './routes/NewPage/PageOne';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
          <Route path="/" exact component={BasicLayout} />
          {/*<Route path="/products" exact component={PageOne} />*/}
      </Switch>
    </Router>
  );
}

export default RouterConfig;
